package service.configuration.xstream;

import service.configuration.IFieldNumberConfig;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import com.thoughtworks.xstream.converters.basic.IntConverter;

@XStreamAlias("number")
public class FieldNumberConfig implements IFieldNumberConfig {
	@XStreamConverter(value=IntConverter.class)
	private Integer min;
	@XStreamConverter(value=IntConverter.class)
	private Integer max;
	
	public FieldNumberConfig(Integer min, Integer max) {
		this.min = min;
		this.max = max;
	}

	public Integer getMin() {
		return min;
	}

	public void setMin(Integer min) {
		this.min = min;
	}

	public Integer getMax() {
		return max;
	}

	public void setMax(Integer max) {
		this.max = max;
	}
}
